import {LayoutComponent} from './base/layout/layout.component';
import {P404Component} from './base/views/erro/404.component';
import {P500Component} from './base/views/erro/500.component';

export const appRoutes = [
  {
    path: '', component: LayoutComponent,
    children: [
      {path: '', redirectTo: 'dashboard', pathMatch: 'full'},
      {
        path: 'programme',
        loadChildren: './builder/programme/programme.module#ProgrammeModule',
        data: {title: 'Programe'}
      },
      {
        path: '404',
        component: P404Component,
        data: {title: '404'}
      },
      {
        path: '500',
        component: P500Component,
        data: {title: '500'}
      },
    ],
    data: {title: 'Home'}
  },
  {
    path: '**',
    component: P404Component,
    data: {title: '404'}
  },
];
